﻿using Pay.DTO;
using Pay.TO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.IService {
    /// <summary>
    /// 集市商品
    /// </summary>
   public interface ITokenBazaarProductService {
        /// <summary>
        /// 保存商品
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        bool SaveProduct(token_bazaar_product_base_dto model);
        /// <summary>
        /// 获取商品
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        token_bazaar_product_dto GetProduct(long id);
        /// <summary>
        /// 查询商品
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        PagedResult<token_bazaar_product_dto> Gets(BazaarProductQuery query);
        /// <summary>
        /// 删除商品
        /// </summary>
        /// <param name="id"></param>
        /// <param name="merchantId"></param>
       bool Delete(long id, long merchantId);
        /// <summary>
        /// 下架商品
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool Down(long id);
        /// <summary>
        /// 推荐/取消商品
        /// </summary>
        /// <param name="id"></param>
        /// <param name="isRecommend"></param>
        /// <returns></returns>
        bool Recommend(long id, bool isRecommend);
        /// <summary>
        /// 审核商品
        /// </summary>
        /// <param name="id"></param>
        /// <param name="categoryId"></param>
        /// <param name="status"></param>
        /// <returns></returns>
        bool Audit(long id, long categoryId, int status, decimal price, string remark);

    }
}
